REST API Endpoints
To retrieve video data using the WordPress REST API, you can use the following endpoints:
Videos:
{yourdomain.com}/wp-json/wp/v2/wpvsvideosGenres / Categories:
{yourdomain.com}/wp-json/wp/v2/wpvsgenresTV Shows (Categories marked as TV Show)
{yourdomain.com}/wp-json/wp/v2/wpvsgenres?tvshows=1Actors:
{yourdomain.com}/wp-json/wp/v2/wpvsactorsDirectors:
{yourdomain.com}/wp-json/wp/v2/wpvsdirectorsVideo Tags:
{yourdomain.com}/wp-json/wp/v2/wpvsvideotagsYou can also access an individual Video, Genre or other term by adding its id at the end of the url.
Single Video:
{yourdomain.com}/wp-json/wp/v2/wpvsvideos/{id_of_video}Single Genre:
{yourdomain.com}/wp-json/wp/v2/wpvsgenres/{id_of_term}Single Actor:
{yourdomain.com}/wp-json/wp/v2/wpvsactors/{id_of_term}Single Director:
{yourdomain.com}/wp-json/wp/v2/wpvsdirectors/{id_of_term}Single Tag:
{yourdomain.com}/wp-json/wp/v2/wpvsvideotags/{id_of_term}